package com.zc.service;

import com.zc.dao.OddsMapper;
import com.zc.entity.Odds;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TestService {
    @Resource
    private OddsMapper dao;
    public void save()throws Exception{
        Odds odd = new Odds();
        odd.setExpect("123");
        odd.setOpentime("2012-02-03");
        odd.setOpencode("123");
        dao.insertSelective(odd);
        int i = 10/0;
        dao.insertSelective(odd);
    }
}
